<script type="text/javascript">
    window.onload = function() {
        var activity = document.getElementById('Activity');
        activity.onchange = function () {  parent(activity.value); return false; }    
    };
    function parent(activity)
    {
        dojo.xhrGet({
            url: "/admin/json/get-business-type-options/activity/" + activity,
            handleAs: "json",
            timeout: 5000,
            load: function(response, ioArgs) {                
                var tg = dojo.byId('TypeId');
                tg.options.length = 0;                
                for (index = 0; index < response.length; ++index) {
                    option = response[index];
                    tg.options.add(new Option(option.oT, option.oV));
                }                
                return response;
            },
            error: function(response, ioArgs) {
                //alert('Failed xhrGet');
                return response;
            }
        });
    }
</script>

<?php echo $this->form ?>